if (fnt->CreateFont(lf.lfHeight,0,0,0,FW_DONTCARE,0,0,0,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH,"Fixedsys")) {
int i;
for (i=0;i<NStatsBuffer; i++) {
element[0][i]->SetFont(fnt,true);
element[1][i]->SetFont(fnt,true);
}
}
}
}
*/
SetIcon(httrack_icon,false);
SetIcon(httrack_icon,true);
if (ShellOptions != NULL && ShellOptions->choixdeb[0] == '!')
Oniplog(0); // ouvrir log
// Lancer timer!
StartTimer();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void Cinprogress::StartTimer() {
if (!timer) {
timer=SetTimer(WM_TIMER,HTS_SLEEP_WIN,NULL);
}
}
void Cinprogress::StopTimer() {
if (timer) {
KillTimer(timer);
timer=0;
}
}
UINT AffLog( LPVOID pP ) {
Cinprogress* inp = (Cinprogress*) pP;
if (inp != NULL) {
inp->form.m_iplog=(CString) "No log report";
inp->form.DoModal();
inp->BackAffLog = NULL;
}
return 0; // thread completed successfully
}
// log pour fichiers d'erreur et de log
void Cinprogress::OniplogLog() {
Oniplog(0);
}
void Cinprogress::OniplogErr() {
Oniplog(1);
}
void Cinprogress::Oniplog(int mode) {
if (!BackAffLog) { // pas encore lancΘ
strcpybuff(pathlog,dialog0->GetPath());
if (strlen(pathlog)>0)
if ((pathlog[strlen(pathlog)-1]!='/') && (pathlog[strlen(pathlog)-1]!='\\'))
strcatbuff(pathlog,"/");
// fichier log existe ou on est tΘlΘcommandΘ par un !